<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户资料页面 - 北欧风设计预览</title>
    <style>
        /* 北欧风样式预览 */
        :root {
            --primary-color: #5B7C99;
            --bg-color: #FAFBFC;
            --card-bg: #FFFFFF;
            --text-primary: #2C3E50;
            --text-secondary: #7F8C8D;
            --text-light: #BDC3C7;
            --accent-color: #E74C3C;
            --border-color: #ECF0F1;
            --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
            --shadow-medium: 0 4px 16px rgba(0, 0, 0, 0.08);
            --radius-small: 8px;
            --radius-medium: 12px;
            --radius-large: 16px;
            --spacing-xs: 8px;
            --spacing-sm: 16px;
            --spacing-md: 24px;
            --spacing-lg: 32px;
            --font-light: 300;
            --font-regular: 400;
            --font-medium: 500;
            --font-semibold: 600;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: var(--bg-color);
            color: var(--text-primary);
            line-height: 1.6;
        }

        .profile-container {
            max-width: 375px;
            margin: 0 auto;
            min-height: 100vh;
            background: var(--bg-color);
        }

        .profile-header {
            background: linear-gradient(135deg, var(--primary-color) 0%, #4A6B85 100%);
            padding: var(--spacing-lg) var(--spacing-md) var(--spacing-xl);
            position: relative;
            overflow: hidden;
        }

        .profile-header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 200px;
            height: 200px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            transform: rotate(45deg);
        }

        .profile-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            margin: 0 auto var(--spacing-md);
            background: var(--card-bg);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
        }

        .profile-name {
            font-size: 24px;
            font-weight: var(--font-semibold);
            color: white;
            text-align: center;
            margin-bottom: var(--spacing-xs);
            letter-spacing: -0.02em;
        }

        .profile-basic-info {
            display: flex;
            justify-content: center;
            gap: var(--spacing-md);
            margin-bottom: var(--spacing-sm);
        }

        .basic-info-item {
            text-align: center;
        }

        .basic-info-value {
            font-size: 18px;
            font-weight: var(--font-medium);
            color: white;
            font-family: 'SF Mono', Monaco, monospace;
            margin-bottom: 2px;
        }

        .basic-info-label {
            font-size: 12px;
            font-weight: var(--font-light);
            color: rgba(255, 255, 255, 0.8);
        }

        .profile-status {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-xs);
        }

        .online-indicator {
            width: 8px;
            height: 8px;
            background: #2ECC71;
            border-radius: 50%;
            box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
        }

        .status-text {
            font-size: 14px;
            font-weight: var(--font-medium);
            color: rgba(255, 255, 255, 0.9);
        }

        .info-cards {
            padding: 0 var(--spacing-sm);
            margin-top: -var(--spacing-md);
            position: relative;
            z-index: 3;
        }

        .info-card {
            background: var(--card-bg);
            border-radius: var(--radius-large);
            margin-bottom: var(--spacing-sm);
            box-shadow: var(--shadow-light);
            overflow: hidden;
            animation: fadeInUp 0.3s ease-out;
        }

        .info-card:nth-child(2) {
            animation-delay: 0.1s;
        }

        .info-card:nth-child(3) {
            animation-delay: 0.2s;
        }

        .info-card:nth-child(4) {
            animation-delay: 0.3s;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .card-header {
            padding: var(--spacing-md) var(--spacing-md) var(--spacing-sm);
            border-bottom: 1px solid var(--border-color);
        }

        .card-title {
            font-size: 16px;
            font-weight: var(--font-medium);
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .card-content {
            padding: var(--spacing-md);
        }

        .info-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: var(--spacing-md);
        }

        .info-item {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .info-label {
            font-size: 13px;
            font-weight: var(--font-regular);
            color: var(--text-light);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .info-value {
            font-size: 15px;
            font-weight: var(--font-medium);
            color: var(--text-primary);
            line-height: 1.4;
        }

        .info-value.highlight {
            color: var(--primary-color);
            font-weight: var(--font-semibold);
        }

        .action-buttons {
            padding: var(--spacing-md);
            display: flex;
            gap: var(--spacing-sm);
        }

        .action-btn {
            flex: 1;
            height: 48px;
            border-radius: var(--radius-medium);
            border: none;
            font-size: 16px;
            font-weight: var(--font-medium);
            transition: all 0.15s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: var(--spacing-xs);
            cursor: pointer;
        }

        .action-btn:active {
            transform: scale(0.98);
        }

        .action-btn.primary {
            background: var(--primary-color);
            color: white;
            box-shadow: var(--shadow-medium);
        }

        .action-btn.primary:hover {
            background: #4A6B85;
        }

        .action-btn.secondary {
            background: var(--bg-color);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }

        .action-btn.secondary:hover {
            background: var(--border-color);
        }

        .api-info {
            background: var(--card-bg);
            border-radius: var(--radius-large);
            margin: var(--spacing-sm);
            padding: var(--spacing-md);
            box-shadow: var(--shadow-light);
            border-left: 4px solid var(--accent-color);
        }

        .api-title {
            font-size: 14px;
            font-weight: var(--font-semibold);
            color: var(--accent-color);
            margin-bottom: var(--spacing-xs);
        }

        .api-details {
            font-size: 13px;
            font-weight: var(--font-light);
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .api-code {
            background: var(--bg-color);
            border-radius: var(--radius-small);
            padding: var(--spacing-xs);
            font-family: 'SF Mono', Monaco, monospace;
            font-size: 12px;
            margin: var(--spacing-xs) 0;
            border: 1px solid var(--border-color);
        }
    </style>
</head>

<body>
    <div class="profile-container">
        <!-- 个人信息头部 -->
        <div class="profile-header">
            <div class="profile-avatar">👤</div>
            <div class="profile-name">张伟</div>
            <div class="profile-basic-info">
                <div class="basic-info-item">
                    <div class="basic-info-value">28</div>
                    <div class="basic-info-label">年龄</div>
                </div>
                <div class="basic-info-item">
                    <div class="basic-info-value">175cm</div>
                    <div class="basic-info-label">身高</div>
                </div>
                <div class="basic-info-item">
                    <div class="basic-info-value">140斤</div>
                    <div class="basic-info-label">体重</div>
                </div>
            </div>
            <div class="profile-status">
                <div class="online-indicator"></div>
                <span class="status-text">在线</span>
            </div>
        </div>

        <!-- 详细信息卡片 -->
        <div class="info-cards">
            <!-- API集成信息 -->
            <div class="api-info">
                <div class="api-title">🔗 API集成信息</div>
                <div class="api-details">
                    <strong>接口地址：</strong>/matchmaking/userprofile/query<br>
                    <strong>用户编号：</strong>859（默认）<br>
                    <strong>服务器：</strong>10.108.165.49:8888
                    <div class="api-code">
                        queryUserProfiles({
                        userNumList: [859]
                        })
                    </div>
                </div>
            </div>

            <!-- 基本信息卡片 -->
            <div class="info-card">
                <div class="card-header">
                    <span class="card-title">基本信息</span>
                </div>
                <div class="card-content">
                    <div class="info-grid">
                        <div class="info-item">
                            <span class="info-label">性别</span>
                            <span class="info-value">男</span>
                        </div>
                        <div class="info-item">
                            <span class="info-label">生日</span>
                            <span class="info-value">1995-03-15</span>
                        </div>
                        <div class="info-item">
                            <span class="info-label">属相</span>
                            <span class="info-value">猪</span>
                        </div>
                        <div class="info-item">
                            <span class="info-label">BMI</span>
                            <span class="info-value">正常</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 教育职业卡片 -->
            <div class="info-card">
                <div class="card-header">
                    <span class="card-title">教育职业</span>
                </div>
                <div class="card-content">
                    <div class="info-grid">
                        <div class="info-item">
                            <span class="info-label">学历</span>
                            <span class="info-value highlight">本科</span>
                        </div>
                        <div class="info-item">
                            <span class="info-label">职业</span>
                            <span class="info-value highlight">工程师</span>
                        </div>
                        <div class="info-item">
                            <span class="info-label">政治面貌</span>
                            <span class="info-value">党员</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 地区信息卡片 -->
            <div class="info-card">
                <div class="card-header">
                    <span class="card-title">地区信息</span>
                </div>
                <div class="card-content">
                    <div class="info-grid">
                        <div class="info-item">
                            <span class="info-label">籍贯</span>
                            <span class="info-value">宣城</span>
                        </div>
                        <div class="info-item">
                            <span class="info-label">现居地</span>
                            <span class="info-value">上海</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 资产状况卡片 -->
            <div class="info-card">
                <div class="card-header">
                    <span class="card-title">资产状况</span>
                </div>
                <div class="card-content">
                    <div class="info-grid">
                        <div class="info-item">
                            <span class="info-label">年收入</span>
                            <span class="info-value highlight">25万</span>
                        </div>
                        <div class="info-item">
                            <span class="info-label">房产</span>
                            <span class="info-value">城区全款房</span>
                        </div>
                        <div class="info-item">
                            <span class="info-label">车辆</span>
                            <span class="info-value">有车</span>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 操作按钮 -->
            <div class="action-buttons">
                <button class="action-btn secondary" onclick="showApiDetails()">
                    <span>API详情</span>
                </button>
                <button class="action-btn primary" onclick="editProfile()">
                    <span>编辑资料</span>
                </button>
            </div>
        </div>
    </div>

    <script>
        function showApiDetails() {
            alert(`API集成详情：
            
接口：/matchmaking/userprofile/query
服务器：10.108.165.49:8888
用户编号：859

请求参数：
{
  "userNumList": [859]
}

返回数据结构：
- userprofileList[0].name: 姓名
- userprofileList[0].gender: 性别
- userprofileList[0].age: 年龄
- userprofileList[0].height: 身高
- userprofileList[0].weight: 体重
- userprofileList[0].education: 学历
- userprofileList[0].occupation: 职业
- userprofileList[0].assets: 资产信息
- userprofileList[0].familyMembers: 家庭信息`);
        }

        function editProfile() {
            alert('切换到编辑模式（北欧风表单设计）');
        }

        // 模拟加载动画
        document.addEventListener('DOMContentLoaded', function () {
            const cards = document.querySelectorAll('.info-card');
            cards.forEach((card, index) => {
                card.style.animationDelay = `${index * 0.1}s`;
            });
        });
    </script>
</body>

</html>